<?php if(!defined("PATH_HD"))exit;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link type="text/css" rel="stylesheet" href="http://localhost/self/admin/tpl/public/css/base.css"/>
            <link type="text/css" rel="stylesheet" href="http://localhost/self/admin/tpl/public/css/category.css"/>
            <script type="text/javascript" src="<?php echo "http://localhost/self/admin/tpl/public/js/jquery-1.7.2.min.js";?>"></script>
            <script type="text/javascript" src="<?php echo "http://localhost/self/admin/tpl/public/js/news.js";?>"></script>
    </head>
    <body>
        <!--现在的位置-->
        <div class="position">
            <span class="word">您现在的位置： ->  </span>
            <a href="http://localhost/self/admin.php/newsource/index" target="iframeShow" class="new_pos">来源管理</a> 
        </div>
        <!--正文内容-->
        <div class="button1">
            <a href="http://localhost/self/admin.php/newsource/add_show">添加来源</a>
        </div>
        <form method="post" action="http://localhost/self/admin.php/newsource/del_sel_all">
        <table class="table1">
            <tr>
                <th style="width:10px;"><input type="checkbox" name="del" class="del"></th>
                <th style="width:100px;">标题</th>
                <th style="width:100px;">网址</th>
                <th>操作</th>
            </tr>
            <?php $hd["list"]["v"]["total"]=0;
if(!empty($row)):
$hd_list_total = count($row);
$hd_list_row = min(floor($hd_list_total/1),20);
$hd["list"]["hd_list_total"]=$hd_list_total;
$hd_list_id=0;
for($i=0;$i<$hd_list_total;$i+=1):
$hd["list"]["v"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["v"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["v"]["index"]=$hd_list_id+1;
$v=current($row);next($row);?>

                <tr>
                    <th style="width:10px;"><input type="checkbox" name="del[<?php echo $v['sid'];?>]" class="del"></th>
                    <th style="width:100px;"><?php echo $v['sname'];?></th>
                    <th style="width:100px;"><?php echo $v['url'];?></th>
                    <th>
                        <a href="http://localhost/self/admin.php/newsource/edit_show/sid/<?php echo $v['sid'];?>" style="color:#555;">编辑</a> | 
                        <a href="http://localhost/self/admin.php/newsource/del/sid/<?php echo $v['sid'];?>" style="color:#555;">删除</a>                    
                    </th>
                </tr>
            <?php if($hd_list_id>=$hd_list_row-1)break;
$hd_list_id++;
endfor;
$hd["list"]["v"]["total"]=$hd_list_id+1;
endif;
?>
        </table>
            <input type="button" value="全选" class="allchoose">
            <input type="button" value="反选" class="nochoose">
            <input type="submit" value="删除" name="submit">
            <span  style="float:right" class="page"><?php echo $page;?></span>
        </form>
    </body>
</html>